package com.newtouch.bxzs.business.personal.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.newtouch.bxzs.business.personal.model.AddCustomerBirthdayRemindVO;
import com.newtouch.bxzs.business.personal.model.CustomerBirthdayRemindBO;
import com.newtouch.bxzs.business.personal.model.CustomerBirthdayRemindVO;
import com.newtouch.bxzs.common.base.model.CustomerBirthdayRemind;

/**
 * 客户生日提醒Mapper
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021年3月22日</td>
 * <td>xiongdianqiang</td>
 * <td>Create</td>
 * </tr>
 * </table>
 * 
 * @author xiongdianqiang
 * 
 * @version 1.0.0
 * @since 1.0.0
 */
@Mapper
public interface CustomerBirthdayRemindMapper extends BaseMapper<CustomerBirthdayRemind> {

	/**
	 * 获取客户生日提醒列表
	 * 
	 * @param page
	 * @param customerbirthdayRemindVO
	 * @return
	 */
	IPage<CustomerBirthdayRemindBO> getCustomerBirthdayRemindList(@Param("userId") String userId,
			@Param("page") Page<CustomerBirthdayRemindBO> page,
			@Param("customerbirthdayRemindVO") CustomerBirthdayRemindVO customerbirthdayRemindVO);

	/**
	 * 新建客户生日提醒
	 * 
	 * @param addCustomerBirthdayRemindVO
	 * @return
	 */
	Integer addCustomerBirthdayRemind(
			@Param("addCustomerBirthdayRemindVO") AddCustomerBirthdayRemindVO addCustomerBirthdayRemindVO,
			@Param("userId") String userId);

}
